import javax.swing.*;

public class Window extends JFrame {
    public static void main(String[] args) {
        new Window();
    }

    public Window(){
        this.setLayout(null);


        JTextField text = new JTextField();
        text.setBounds(160,50,150,20);
        this.add(text);

        JTextField text1 = new JTextField();
        text1.setBounds(160,90,150,20);
        this.add(text1);
        JTextField text2 = new JTextField();
        text2.setBounds(160,130,150,20);
        this.add(text2);
        JTextField text3 = new JTextField();
        text3.setBounds(160,170,150,20);
        this.add(text3);

        JLabel jl = new JLabel("姓名");
        jl.setBounds(80,50,30,20);
        JLabel jl1 = new JLabel("年龄");
        jl1.setBounds(80,90,30,20);
        JLabel jl2 = new JLabel("性别");
        jl2.setBounds(80,130,30,20);
        JLabel jl3 = new JLabel("电话");
        jl3.setBounds(80,170,30,20);
        this.add(jl);
        this.add(jl1);
        this.add(jl2);
        this.add(jl3);

        JButton button = new JButton("添加");
        JButton button1 = new JButton("删除");
        JButton button2 = new JButton("修改");
        JButton button3 = new JButton("查找");
        button.setBounds(60,240,120,20);
        button1.setBounds(210,240,120,20);
        button2.setBounds(60,280,120,20);
        button3.setBounds(210,280,120,20);
        this.add(button);
        this.add(button1);
        this.add(button3);
        this.add(button2);

        this.setSize(400,500);
        this.setVisible(true);
        this.setTitle("你 好");
        this.setDefaultCloseOperation(3);
        this.setLocationRelativeTo(null);
    }
}
